.PHONY: proto api-gateway alert-service ai-gateway tidy-shared tidy-api tidy-alert tidy-ai

GOCACHE ?= $(PWD)/.gocache
GOMODCACHE ?= $(PWD)/.gomodcache
export GOCACHE
export GOMODCACHE

proto:
	@cd proto && buf generate

api-gateway:
	@cd services/api-gateway && go run ./cmd

alert-service:
	@cd services/alert-service && go run ./cmd

ai-gateway:
	@cd services/ai-gateway && go run ./cmd

tidy-shared:
	@cd shared && go mod tidy

tidy-api:
	@cd services/api-gateway && go mod tidy

tidy-alert:
	@cd services/alert-service && go mod tidy

tidy-ai:
	@cd services/ai-gateway && go mod tidy
